← Back to issue list

completion /usr/lib/snapd/etelpmoc.sh error

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1863961
Type
issue
State
open
Author
~casper-dcl
Labels
Created
2020-02-19 22:43:31.562574+00:00
Updated
2020-02-19 22:43:31.562574+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

$ snap version snap 2.43.2 snapd 2.43.2 series 16 ubuntu 16.04 kernel 4.15.0-58-generic $ snap run --command=complete gh 9 9 3 1 " " 'gh ' gh "" /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8) /usr/lib/snapd/etelpmoc.sh: line 71: /usr/share/bash-completion/bash_completion: No such file or directory /snap/gh/x4/completion.sh: line 16: _get_comp_words_by_ref: command not found default According to https://forum.snapcraft.io/t/debugging-tab-completion/4198 this is a bug: > If you see a different error from etelpmoc.sh, most like we broke something! So sorry. Please let us know; we’ll sort it. > Most often though you’ll see an error from your script. You should be able to debug as usual, here. Completion doesn't work at all. However manually running $ . /snap/gh/current/completion.sh works so there's nothing wrong with the completion script itself. $ snap run --shell gh $ cd $SNAP /snap/gh/x5$ /snap/gh/x5$ source /usr/share/bash-completion/bash_completion bash: /usr/share/bash-completion/bash_completion: No such file or directory Source repo with snapcraft.yml: https://github.com/casperdcl/cli/tree/snap

Evaluation history

No evaluation history available.